package com.chushouya.order.dto.admin.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("订单提交")
@Data
public class StoreOrderSubmitDTO {

    @ApiModelProperty("订单号")
    @NotNull(message = "订单号不能为空")
    private String orderNo;

    @ApiModelProperty("产品信息")
    @NotNull(message = "产品Id不能为空")
    private Long productId;

    @ApiModelProperty("产品选项")
    @NotNull(message = "产品选项不能为空")
    private List<OrderProductOption> productOptionList;

    @ApiModelProperty("产品图片")
    @NotNull(message = "产品图片不能为空")
    private List<OrderImageDTO> productImageList;

    @ApiModelProperty("用户姓名")
    @NotBlank(message = "用户姓名不能为空")
    private String userName;

    @ApiModelProperty("用户手机号")
    @NotBlank(message = "用户手机号不能为空")
    private String userPhone;

//    @ApiModelProperty("用户openId")
//    @NotBlank(message = "用户openId不能为空")
//    private String openId;

    @ApiModelProperty("串号")
    private String meid;

    @ApiModelProperty("订单备注")
    private String remark;

//    @ApiModelProperty("sourceId")
//    @NotBlank(message = "sourceId不能为空")
//    private String sourceId;

}
